package com.sinosoft.hystrix;

import com.sinosoft.domain.UserDTO;
import com.sinosoft.service.IServer;
import org.springframework.stereotype.Component;

/**
 * @author loujiang
 * @date 2020/12/23 3:02 下午
 * @NOTE:
 */
@Component
public class Fallback implements  IServer {
    @Override
    public String Retry(int time) {
        return "You are late";
    }

    @Override
    public String Retry1(int time) {
        return null;
    }

    public String error() {
        System.out.println("这里是处理fallback的逻辑");
        return "处理降级";
    }

    @Override
    public String sayHi() {
        return null;
    }

    @Override
    public UserDTO getUser(String name) {

        return  null;
    }
}
